#ifndef __SERIAL_H__
#define __SERIAL_H__

#include <stdio.h>                      //在魔术棒 Target 里面勾选 MicroLIB 这是Keil优化过的精简库   

extern uint8_t Serial_TXPack[];
extern uint8_t Serial_RXPack[];
extern char Text_RXPack[];

void Serial_Init(void);
void Serial_SendByte(uint8_t Byte);
void Serial_SendArray(uint8_t *Array, uint16_t Length);
void Serial_SendString(char *String);
int16_t Serial_Pow(int16_t Number, int16_t PowNum);
void Serial_SendNum(uint16_t Number, uint16_t Length);
void Serial_Printf(const char *format,...);
uint8_t Serial_GetRxFlag(void);
uint8_t Serial_GetRxData(void);
void Serial_SendHexPacket(void);
void Serial_SendTextPacket(char *Text_RXPack);



#endif
